<template>
    <div id="info_window_container">
        <div style="font-size: x-large;font-family: 华文楷体">信息展示:</div>
        <div>
            <span style="font-size: large">地址:</span>
            <span>{{placeAddress}}</span>
        </div>
        <div>
            <span style="font-size: large">坐标:</span>
            <span>{{placeLocation}}</span>
        </div>
    </div>
</template>

<script>
    import bus from'@/bus/bus'
    export default {
        data() {
            return {
                placeAddress:'',
                placeLocation:''
            };
        },
        created(){
            bus.$on('shareAddressDetails',(val)=>{
                this.placeAddress=val.address;
                this.placeLocation=val.pos;
            })
        },

    }
</script>

<style lang="less" scoped>
#info_window_container{
    height: 150px;
    width: 250px;
    background-color: #242E66;
    color: lightyellow;
    position: relative;
    left:650px;
    top:570px;
}
</style>